package com.psct.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * 一篇课文数据
 * 
 * @author zjingchuan
 * @param <Criticism>
 * 
 */
public class TextData {

	/**
	 * 
	 */
	private int id;
	/**
	 * 课文标题
	 */
	private String title;
	/**
	 * 所属的课本（第几册）
	 */
	private int bookId;
	
	private int criticismCount;
	/**
	 * 图片资源的路径（本地保存）
	 */
	private List<String> imagePath;
	/**
	 * 评论列表
	 */
	private List<Criticism> criticism;

	/**
	 * 空构造方法
	 */
	public TextData() {
		imagePath=new ArrayList<String>();
		criticism=new ArrayList<Criticism>();
	}
	/**
	 * 构造方法
	 * @param title
	 * @param bookId
	 * @param imagePath
	 * @param criticism
	 */
	public TextData(String title,int bookId,List<String> imagePath,List<Criticism> criticism) {
		this.title=title;
		this.bookId=bookId;
		this.imagePath = imagePath;
		this.criticism=criticism;
	}
	


	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getBookId() {
		return bookId;
	}

	public void setBookId(int bookId) {
		this.bookId = bookId;
	}

	public List<String> getImagePath() {
		return imagePath;
	}

	public void setImagePath(List<String> imagePath) {
		this.imagePath = imagePath;
	}

	public List<Criticism> getCriticism() {
		return criticism;
	}

	public void setCriticism(List<Criticism> criticism) {
		this.criticism = criticism;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getCriticismCount() {
		return criticismCount;
	}
	public void setCriticismCount(int criticismCount) {
		this.criticismCount = criticismCount;
	}
	@Override
	public String toString() {
		return title;
	}

}
